!!!
%html
  %head
    %title Library
    = stylesheet_link_tag    "application", :media => "all"
    = stylesheet_link_tag "application", "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css", :media => "all"
    = javascript_include_tag "application", :media => "all"
    = ajaxful_rating_style
    = csrf_meta_tags
  %body
    - if (current_user)
      .navbar-fixed-top
        .navbar-inner
          .container
            %span.creater= t('.creater')
            %span.language
              %span= link_to t('vietnamese'), url_for(locale: :vi) 
              %span= "|" 
              %span= link_to t('.english'), url_for(locale: :en)
            %span.user_welcome
              .welcome
                %span= "#{t('.welcome')} "
                %span= link_to "#{current_user.try(:email)}", edit_user_registration_path
                %span= " | "
              .logout_btn= link_to t('.logout'), destroy_user_session_path, method: :delete
    .container-fluid
      .row-fluid.clear-top
        .side_bar.span2
          = render "shared/sidebar"
        .body-contain.span10
          = yield
    %footer.navbar-fixed-bottom
      .navbar-inner
        .copyright= t('.copyright')

